﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rel.Expressions
{

    public abstract partial class RegBase
    {

		protected Anchors anchor = Anchors.None;


        public RegBase StartOfLine()
        {
            anchor = Anchors.StartOfLine;
            return this;
        }

        public RegBase EndOfLine()
        {
            anchor = Anchors.EndOfLine;
            return this;
        }

        public RegBase StartOfString()
        {
            anchor = Anchors.StartOfString;
            return this;
        }

        public RegBase EndOfString()
        {
            anchor = Anchors.EndOfString;
            return this;
        }

        public RegBase AfterPreviousMatch()
        {
            anchor = Anchors.AfterPreviousMatch;
            return this;
        }

        public RegBase BetweenWordAndNonWord()
        {
            anchor = Anchors.BetweenWordAndNonWord;
            return this;
        }

        public RegBase NotBetweenWordAndNonWord()
        {
            anchor = Anchors.NotBetweenWordAndNonWord;
            return this;
        }


    }
}
